//
//  TicketInforCell.m
//  ImGuider
//
//  Created by 王鹏宇 on 2018/1/3.
//  Copyright © 2018年 imguider. All rights reserved.
//

#import "TicketIntroduceCell.h"

@implementation TicketIntroduceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.ticketNameLabel.textColor = kTitleColor;
    self.ticketNameLabel.font = FontBold(17);
    self.ticketTipLabel.textColor = kContentColor;
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}


- (void)configDataWith:(TicketDetailModel *)model {
    
    self.ticketNameLabel.text = model.title;
    
    if (model.advance.integerValue > 0) {
        
        self.ticketTipLabel.text = [NSString localizedStringWithFormat:MYLocalizedString(@"TICKET_BOOK_DATE", nil),model.advance];
    }else {
        self.ticketTipLabel.text = @"";
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
